home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Utilities / Catharsis / include / catharsis.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-07-04  |  1.2 KB  |  53 lines

  1. #ifndef CATHARSIS_CATHARSIS_H
  2. #define CATHARSIS_CATHARSIS_H
  3.  
  4. #ifndef EXEC_TYPES_H
  5. #include <exec/types.h>
  6. #endif
  7.  
  8. #ifndef GRAPHICS_GFX_H
  9. #include <graphics/gfx.h>
  10. #endif
  11.  
  12. #ifndef GRAPHICS_RASTPORT_H
  13. #include <graphics/rastport.h>
  14. #endif
  15.  
  16. #ifndef GRAPHICS_TEXT_H
  17. #include <graphics/text.h>
  18. #endif
  19.  
  20. /* Type definitions */
  21.  
  22. struct CharInfo
  23. {
  24.     unsigned short offset;
  25.     unsigned short size;
  26. };
  27.  
  28. struct CharArray
  29. {
  30.     struct CharInfo CharIndex[256];        // Points to each character's CharInfo (see above)
  31. };
  32.  
  33. /* This table is internally used for decoding and only temporarily allocated! */
  34. struct    FontDescription
  35. {
  36.     struct RastPort    RPort;        // For existing, encoded data of font
  37.     struct BitMap    BMap;
  38.     struct RastPort    DestRP;        // For the newly, slightly changed font data
  39.     struct BitMap    DestBM;
  40.  
  41.     unsigned char *Data;        // Font data information pointer
  42.     unsigned short BytesPerRow;    // Complete line with information for all chars
  43.  
  44.     unsigned short LowChar;        // e.g. 32
  45.     unsigned short HiChar;        // e.g. 255
  46.  
  47.     unsigned short CharHeight;    // Height of this char
  48.     unsigned short CharOffset;    // The offset in pixels to reach the information for this char in "data"
  49.     unsigned short CharWidth;    // The amount of information stored per line for this char (e.g. 9)
  50. };
  51.  
  52. #endif
  53.